﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Resources
{
    /// <summary>
    /// 添加字典值请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddDictionaryDataRequestModel
    {
        /// <summary>
        /// 字典项
        /// </summary>
        [Required(ErrorMessage = "字典项不能为空")]
        public DictionaryType type { get; set; }

        /// <summary>
        /// 父级id
        /// </summary>
        public string parentId { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [Required(ErrorMessage = "字典值不能为空")]
        public string name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [Required(ErrorMessage = "编码不能为空")]
        public string code { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 是否启用，1.启用 
        /// </summary>
        public int? enabledMark { get; set; }
    }
}
